#!/usr/bin/env python
#coding:utf8

import bank
import mall
import sys

shop_list = [
            ['Iphone6s',5800,],
            ['Mac_pro ',9000,],
            ['Bike    ',1000,],
            ['SSD_Disk',600,],
            ['Coffee  ',50,],
            ]
_menu = ['登陆银行系统','进入商城购物']
def man1(menu=_menu):
    status = True
    while status:
        for k,v in enumerate(menu):
            print '\033[32m %s : %s\033[0m' % (k,v)
        user_input = raw_input('\033[33m请输入ID (Q\q退出) : \033[0m').strip()
        if user_input == '1':
            user_car = mall.shop_mall(shop_list)
        elif user_input == '0':
            user = bank.bank_interface()
        elif user_input == 'q' or user_input == 'Q':
            status = False
            print '\033[32m   再见！！\033[0m'
            sys.exit()

if __name__ == '__main__':
    man1()    
#user_car = mall.shop_mall(shop_list)

#print 'shop_car -->',user_car



